import request from '@/utils/request'

// 商品类型搜索
export const searchSkuClassApi = params => request.get('/vm-service/skuClass/search', {params})

// 新增商品类型
export const addSkuClassApi = data => request.post(`/vm-service/skuClass`, data)

// 修改商品类型
export const editSkuClassApi = data => request.put(`/vm-service/skuClass/${data.classId}`, data)

// 删除商品类型
export const delSkuClassApi = id => request.delete(`/vm-service/skuClass/${id}`)

// 商品搜索
export const searchSkuApi = params => request.get('/vm-service/sku/search', { params })

// 新增商品
export const addSkuApi = data => request.post(`/vm-service/sku`, data)

// 修改商品类型
export const editSkuApi = data => request.put(`/vm-service/sku/${data.skuId}`, data)

